home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Text / Include / ODText.h < prev    next >
Encoding:
Text File  |  1994-04-21  |  1.5 KB  |  56 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                            ODText.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Author:                        Anthone Burbidge
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #ifndef _ODTEXT_
  14. #define _ODTEXT_
  15.  
  16. // ----- Textension Includes -----
  17.  
  18. #ifndef _Textension_
  19. #include "Textension.h"
  20. #endif
  21.  
  22. //========================================================================================
  23. // CLASS COpenDocText
  24. //========================================================================================
  25.  
  26. class COpenDocText : public CTextension
  27. {
  28. //----------------------------------------------------------------------------------------
  29. //    • Initialization/Destruction
  30. //
  31. public:
  32.                     COpenDocText();
  33.     virtual            ~COpenDocText();
  34.     
  35.     OSErr            InitOpenDocText(GrafPtr textPort,
  36.                                     TTextensionHandlers* handlers,
  37.                                     TSize sizeInfo);
  38.  
  39. //----------------------------------------------------------------------------------------
  40. //    • New API
  41. //
  42. public:
  43.     virtual void NotifyEmbeddedPartsOfPositionChange(long firstFormatLine,
  44.                                                      long lastFormatLine);
  45.  
  46. //----------------------------------------------------------------------------------------
  47. //    • Inherited API
  48. //
  49. protected:
  50.     virtual void     EndEdit(const TEditInfo* editInfo,
  51.                             long firstFormatLine, long lastFormatLine,
  52.                             TOffset* selOffset=nil, Boolean updateKeyScript=true);
  53. };
  54.  
  55. #endif
  56.